import Vue from 'vue'
import VueRouter from 'vue-router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI);
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Login',
    component: ()=>import('../views/Login.vue')
  }, {
    path: '/sys',
    name: 'list',
    component: () =>
        import ('../views/主页.vue')
}
 
]

const router = new VueRouter({
  routes
})

export default router
